package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.query.DestinationQuery;
import org.springframework.data.domain.Page;
import sun.security.krb5.internal.crypto.Des;

import java.util.List;

/**
 * 目的地服务接口
 */
public interface IDestinationService {

    /**
     * 查单个
     *
     * @param id
     * @return
     */
    Destination get(String id);

    /**
     * 分页
     *
     * @param qo
     * @return
     */
    Page<Destination> query(DestinationQuery qo);

    /**
     * 查询所有
     *
     * @return
     */
    List<Destination> list();



    /**
     * 面包屑导航
     *
     * @param parentId
     * @return
     */
    List<Destination> queryToasts(String parentId);

    void createToast(List<Destination> list, String parentId);


    void saveOrUpdate(Destination destination);


    void save(Destination destination);


    void update(Destination destination);



    List<Destination> queryDestByRegionIdForApi(String regionId);

    List<Destination> queryDestByRegionId(String regionId);
}
